package com.swsc.ai.configs;

import com.swsc.ai.configs.bean.FtpSourceProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @describe: 获取ftp信息的配置类
 * @author: 容若
 * @created: 2024-06-20 9:49
 */
@Slf4j
@Configuration
@EnableConfigurationProperties(FtpSourceProperties.class)
public class FtpConfiguration {

    @Bean("ftpSourceProperties")
    public FtpSourceProperties ftpSourceProperties() {
        return new FtpSourceProperties();
    }
}
